import set from '@dfeidao/atom-web/local/set';
import nodejs from '@dfeidao/atom-web/msg/nodejs';
import render from '@dfeidao/atom-web/render/render';
// import set_node_cls from '@dfeidao/atom-web/ui/set-node-cls';
import { IFeidaoAiBrowserComponent } from '@dfeidao/web/interfaces';

import P01 from './P01';
export default async function a000(fd: IFeidaoAiBrowserComponent, productid: string) {
	//  调用事件
	fd.data.node.querySelector<HTMLDivElement>('[id="zj2"]').classList.remove('display-n');
	// set_node_cls(node, 'dispaly-n', false);
	set(fd, 'productid', productid);
	// console.log(args.productid);
	const data = await nodejs<{ dataArray: object[], count: number }>('roler/zj-000002/s001', { productid });
	render(fd, data, P01, 'P01', 'inner');
}
